﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Cache.Memory
{
    public interface IMemCache
    {
        T GetFromCache<T>(string cacheKey, Func<T> getItemCallback, float timeCache = 10) where T : class;

        void RemoveFromCache(string key, bool isApart = false);
    }
}
